package cn.hr.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 积分配置实体类
 */
@Entity
@Table(name="tb_configuration"
    ,catalog="hrm"
)

public class Configuration  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 5420174644553904413L;
	private Integer id;
     private String configurationName;
     private Integer parentId;
     private Integer points;
     private String layer;


    // Constructors

    /** default constructor */
    public Configuration() {
    }

	/** minimal constructor */
    public Configuration(String configurationName, Integer points, String layer) {
        this.configurationName = configurationName;
        this.points = points;
        this.layer = layer;
    }
    
    /** full constructor */
    public Configuration(String configurationName, Integer parentId, Integer points, String layer) {
        this.configurationName = configurationName;
        this.parentId = parentId;
        this.points = points;
        this.layer = layer;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="configurationName", nullable=false, length=16)

    public String getConfigurationName() {
        return this.configurationName;
    }
    
    public void setConfigurationName(String configurationName) {
        this.configurationName = configurationName;
    }
    
    @Column(name="parentId")

    public Integer getParentId() {
        return this.parentId;
    }
    
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    
    @Column(name="points", nullable=false)

    public Integer getPoints() {
        return this.points;
    }
    
    public void setPoints(Integer points) {
        this.points = points;
    }
    
    @Column(name="layer", nullable=false, length=16)

    public String getLayer() {
        return this.layer;
    }
    
    public void setLayer(String layer) {
        this.layer = layer;
    }
   








}